package com.liner;

import javax.swing.*;

/**
 * @author 一条淡水鱼 ゆ
 * @Classname Image
 * @Description 图片类
 * @Date 2023-04-02
 */
public class Images {

    public static ImageIcon background; //背景图
    public static ImageIcon bird;
    public static ImageIcon bear;
    public static ImageIcon fox;
    public static ImageIcon frog;
    public static ImageIcon[] bombs;

    static {
        background = new ImageIcon("HappyEliminate/src/com/liner/img/background.png");
        bird = new ImageIcon("HappyEliminate/src/com/liner/img/bird.png");
        bear = new ImageIcon("HappyEliminate/src/com/liner/img/bear.png");
        fox = new ImageIcon("HappyEliminate/src/com/liner/img/fox.png");
        frog = new ImageIcon("HappyEliminate/src/com/liner/img/frog.png");
        bombs = new ImageIcon[4];
        for (int i = 0; i < bombs.length; i++) {
            bombs[i] = new ImageIcon("HappyEliminate/src/com/liner/img/bom" + (i + 1) + ".png");
        }
    }

    public static void main(String[] args) {
        System.out.println(background.getImageLoadStatus());    //返回8表示成功
        System.out.println(bird.getImageLoadStatus());    //返回8表示成功
        System.out.println(frog.getImageLoadStatus());    //返回8表示成功
        System.out.println(fox.getImageLoadStatus());    //返回8表示成功
        System.out.println(bear.getImageLoadStatus());    //返回8表示成功
        for (int i = 0; i < bombs.length ; i++) {
            System.out.println(bombs[i].getImageLoadStatus());
        }

    }



}
